<template>
  <div id="one">
    <van-sticky :offset-top="0">
      <van-nav-bar title="城市观光" left-arrow @click-left="$router.go(-1)" />
    </van-sticky>
    <van-image
      width="100%"
      height="52"
      :src="require('../../assets/img/hotBg.png')"
    />

    <div class="mask">
      <div class="mask_new" v-for="item in 10" :key="item.id" @click="$router.push('/hotelist')">
        <div class="mask_div">
          <span>房卷</span>
          <img
            src="../../assets/img/c7c969f3-cd20-4478-a415-1815d4835ffd_202004141711_500_350.jpg"
            alt=""
          />
        </div>

        <div class="mask_first">
          <p>
            【周末不加价】上海绿地金庭庄园一日聚会（ 含特色午餐+晚餐+免费棋牌+卡拉OK+萌宠互动 市区聚会，交通便捷丨老友聚 ）（10人起订）
          </p>
          <div class="spring">
            <span>春秋定制</span>
            <span>微游上海</span>
            <span>上海</span>
          </div>

          <div class="mask_first_once">
            <span>￥</span>
            <p>49</p>
            <span>起</span>
          </div>
        </div>
      </div>
    </div>

    <div id="weibu">
      <span><van-icon name="sort" />排序方式</span>
      <span><van-icon name="add" />更多筛选</span>
    </div>
  </div>
</template>

<script>
export default {
  methods: {},
};
</script>

<style lang="scss" scoped>
#one {
  width: 100vw;
  height: 100%;
  background-color: #fff;
}
template {
  position: relative;
}
.van-card {
  height: 100px;
  margin-bottom: 33px;
}
.van-card__price {
  margin: 10px 0;
  color: red;
}
.van-tag {
  margin-right: 6px;
}
.van-card__footer {
  margin: -27px 0;
}
.van-card__content .d1 {
  background-color: #5e6e82;
  opacity: 0.5;
  display: inline-block;
  position: absolute;
  top: 1%;
  left: -37%;
  width: 40px;
  height: 20px;
  border-radius: 5px;
  text-align: center;
  line-height: 20px;
}
.van-card__bottom {
  line-height: 14px;
}
.van-card__content .d2 {
  display: inline-block;
  position: absolute;
  top: 29%;
  left: 80%;
  color: #f09;
}
#two {
  height: 636px;
  background-color: #fff;
}
#weibu {
  position: fixed;
  bottom: 0;
  background-color: #3d4a59;
  height: 40px;
  width: 100%;
  display: flex;
  flex-direction: row;
  margin-top: 46px;
  justify-content: space-around;
  z-index: 1;
}
#weibu > span {
  font-size: 14px;
  display: flex;
  flex-direction: column;
}
#weibu > span .van-icon {
  margin-left: 18px;
  margin-top: 3px;
}
.mask {
  padding: 14px;
  margin-bottom: 30px;
  .mask_new {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    .mask_div {
      width: 113px;
      height: 113px;
      border-radius: 5px;
      position: relative;
      overflow: hidden;
      span {
        width: 25px;
        height: 20px;
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        position: absolute;
      }
      img {
        width: 113px;
        height: 113px;
        object-fit: cover;
        display: block;
      }
    }
    .spring{
        width: 219px;
        span:nth-child(1){
          color: #fff;
          background-color:#6da7ff;
          padding: 0 4px;
          margin-right: 3px;
          border-radius: 2px;
        }
        span:nth-child(2){
          color: #249b57;
          background-color:#f0faf4;
          padding: 0 4px;
          margin-right: 3px;
          border-radius: 2px;
        }
        span:nth-child(3){
          color: #249b57;
          background-color:#f0faf4;
          padding: 0 4px;
          margin-right: 3px;
          border-radius: 2px;
        }
      }
    .mask_first {
      width: 219px;
      height: 113px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      p {
        font-size: 14px;
        font-weight: bold;
        text-overflow: ellipsis;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      .mask_first_once {
        height: 18px;
        display: flex;
        span {
          color: red;
        }
        p {
          font-size: 18px;
          color: red;
        }
      }
    }
  }
}
</style>
